package com.example.game_dafangdaxie.algorithm;

public class changePiece {
    /***
     *改变选手
     * @param numberOfSteps 步数
     * @param Current 当前play
     * @return
     * create by LiuTong
     * 2021.9.27
     */
    private static int[] pieces={0,1};

    public static int getChange(int numberOfSteps,int Current) {
        if (numberOfSteps < 1) {
            return pieces[(Current+1)%2];
        }

        return Current;
    }

}
